<@css src="/css/front/common.css" order="1" />
<@js src="/js/front/common.js" order="2" />
<@content name="body">
    <div class="container-fluid">
        <div class="row">
            <div class="col-9"></div>
            <div class="col-3">
                <#if authorize??>
                    <div class="dropdown float-right">
                        <ul class="nav nav-pills">
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                                    <img src="${authorize.avatar?thumb(32, 32)}" alt="${authorize.nickname}" class="rounded-circle">
                                </a>
                                <div class="dropdown-menu dropdown-menu-right">
                                    <a class="dropdown-item" href="#">账号设置</a>
                                    <#if authorize.roleList??>
                                    <#list authorize.roleList as role>
                                        <#if role == 'ADMIN'>
                                            <a class="dropdown-item" href="#">后台管理</a>
                                        </#if>
                                    </#list>
                                    </#if>
                                    <div class="dropdown-divider"></div>
                                    <a class="dropdown-item" href="/logout.html">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </#if>
            </div>
        </div>
    </div>
    <@layout name="content" />
    <@layout name="footerer" />
</@content>
<@parent path="/front/common/html.ftl" />